package com.liysh;

import com.liysh.service.UserServiceImpl;
import com.spring.UserService;
import com.spring.liyshApplicationContext;

public class Test {
    public static void main(String[] args) {
        liyshApplicationContext applicationContext=new liyshApplicationContext(AppConfig.class);
        UserService userService =(UserService) applicationContext.getBean("userService");   //实现单例池   map  <beanName,bean对戏>
        userService.test();  //userService 是一个代理对象
    }
}
